package com.aqumon.www.entity.persistent;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigInteger;
import java.time.LocalDateTime;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * raas 测试账号
 * </p>
 *
 * @author aqumon
 * @since 2022-06-02
 */
@Getter
@Setter
@TableName("raas_test_acc")
@ApiModel(value = "RaasTestAcc对象", description = "raas 测试账号")
public class RaaSTestAcc implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("创建人")
    @TableField("creator")
    private String creator;

    @ApiModelProperty("修改人")
    @TableField("modifier")
    private String modifier;

    @ApiModelProperty("项目名称")
    @TableField("project")
    @ExcelProperty(index = 0, value = "项目")
    private String project;

    @ApiModelProperty("测试环境，SIT,DEV,PROD")
    @TableField("env")
    @ExcelProperty(index = 1, value = "环境")
    private String env;

    @ApiModelProperty("用户名")
    @TableField("user_name")
    @ExcelProperty(index = 2, value = "用户名")
    private String userName;

    @ApiModelProperty("手机号")
    @TableField("phone")
    @ExcelProperty(index = 3, value = "电话")
    private BigInteger phone;

    @ApiModelProperty("邮箱")
    @TableField("email")
    @ExcelProperty(index = 4, value = "邮箱")
    private String email;

    @ApiModelProperty("机构端客户号")
    @TableField("client_id")
    @ExcelProperty(index = 5, value = "机构端客户号")
    private String clientId;

    @ApiModelProperty("是否已使用")
    @TableField("flag_usage")
    @ExcelProperty(index = 6, value = "是否已使用")
    private int flagUsage;

    @ApiModelProperty("是否持仓")
    @TableField("is_hold")
    @ExcelProperty(index = 7, value = "是否持仓")
    private int isHold;

    @ApiModelProperty("登录密码")
    @TableField("login_password")
    @ExcelProperty(index = 8, value = "登录密码")
    private String loginPassword;

    @ApiModelProperty("交易密码")
    @TableField("trans_password")
    @ExcelProperty(index = 9, value = "交易密码")
    private String transPassword;

    @ApiModelProperty("验证码")
    @TableField("verify_code")
    @ExcelProperty(index = 10, value = "验证码")
    private String verifyCode;

    @ApiModelProperty("RaaS UID")
    @TableField("raas_uid")
    @ExcelProperty(index = 11, value = "RaaS UID")
    private Long raasUid;

    @ApiModelProperty("投资账户id，多组合有多个")
    @TableField("account_id")
    @ExcelProperty(index = 12, value = "account ID")
    private Long accountId;

    @ApiModelProperty("持仓组合id，多组合有多个")
    @TableField("portfolio_id")
    @ExcelProperty(index = 13, value = "portfolio ID")
    private Long portfolioId;

    @ApiModelProperty("用户风评结果")
    @TableField("user_risk_type")
    @ExcelProperty(index = 14, value = "风评结果")
    private String userRiskType;

    @ApiModelProperty("持仓组合名称")
    @TableField("holdings")
    @ExcelProperty(index = 15, value = "持仓组合")
    private String holdings;

    @ApiModelProperty("是否有调仓建议")
    @TableField("has_advice")
    @ExcelProperty(index = 16, value = "是否有调仓advice")
    private Integer hasAdvice;

    @ApiModelProperty("操作记录")
    @TableField("operate_record")
    @ExcelProperty(index = 17, value = "操作记录")
    private String operateRecord;

    @ApiModelProperty("备注")
    @TableField("remark")
    @ExcelProperty(index = 18, value = "备注")
    private String remark;

    @ApiModelProperty("状态 0-正常 1-删除")
    @TableField("is_delete")
    private Integer isDelete;

    @ApiModelProperty("记录创建时间")
    @TableField("gmt_created")
    @ExcelProperty(index = 19, value = "创建时间")
    private Date gmtCreated;

    @ApiModelProperty("修改时间")
    @TableField("gmt_modified")
    @ExcelProperty(index = 20, value = "修改时间")
    private Date gmtModified;
}
